<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="zh-CN">

<head>
    {% load static %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>注册</title>

    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">
    <link rel="stylesheet" href="{% static 'css/register.css' %}">

</head>

<body class="signin">
<div class="signinpanel">
    <form role="form" method="post" action="">
        {% csrf_token %}
        <p class="formTitle">注册</p>
        <div class="form-group">
            <label class="control-label" for="username">工号将自动生成</label>

            <div class="form-group">
                <label class="control-label" for="username">姓名</label>
                <input type="text" class="form-control" id="user-name" name="username" required="required" placeholder="请输入姓名">
            </div>

        </div>
        <br>
        <div class="form-group">
            <label class="control-label" for="username">密码</label>
            <input type="password" class="form-control" id="user-name" name="password" required="required" placeholder="请输入密码">
        </div>
        <br>
        <div class="form-group">
            <label class="control-label" for="username">用户类型</label>
            <select name = 'usertype' class = 'form-control'>
                {% for key,value in select_usertype.SELVALUE %}
                    <option value = '{{ key }}'>{{ value }}</option>
                {% endfor %}
            </select>
        </div>
        <br>
        <div class="form-group">
            <label class="control-label" for="username">学院：（校级管理员可忽略此项）</label>
            <select name = 'collegeId' class = 'form-control'>
                {% for key,value in select_college.SELVALUE %}
                    <option value = '{{ key }}'>{{ value }}</option>
                {% endfor %}
            </select>
        </div>
        <br>
        <div class="form-group">
            <label class="control-label" for="username">班级（老师、管理员可忽略此项）</label>
            <select name = 'classId' class = 'form-control'>
                {% for key,value in select_class.SELVALUE %}
                    <option value = '{{ key }}'>{{ value }}</option>
                {% endfor %}
            </select>
        </div>
        <br>


        <div class="form-group">

            <button type="submit" class="btn">创建用户
            </button>

        </div>


    </form>
</div>
</body>